//
//  HRZStoreModel.m
//  EMarket
//
//  Created by 物联速通信息技术有限公司 on 2018/5/22.
//  Copyright © 2018 好日子. All rights reserved.
//

#import "HRZStoreModel.h"
#import "HRZGoodsModel.h"

@implementation HRZStoreModel

- (instancetype)init {
    if (self = [super init]) {
        self.goodsArray = [NSMutableArray new];
    }
    return self;
}

- (void)setGoods:(NSArray<HRZGoodsModel *> *)goods {
    _goods = goods;
    NSMutableArray *tempArray = [NSMutableArray new];
    for (NSDictionary *dic in goods) {
        HRZGoodsModel *model = [[HRZGoodsModel alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        [tempArray addObject:model];
    }
    self.goodsArray = [NSMutableArray arrayWithArray:tempArray];
}

+(NSDictionary *)mj_objectClassInArray
{
    return @{
             @"goodsTypeArray" : @"HRZGoodsTypeModel"
             };
}

@end
